package utils
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.DisplayObject;
	import flash.display.Sprite;

	public class GenerateBMP
	{
		private var _source:Sprite;
		public function GenerateBMP()
		{
		
		}
		static public function generate(source:Sprite,meatx:int=0,meaty:int=0):Bitmap
		{
			var _bmd:BitmapData=new BitmapData(source.width+meatx,source.height+meaty,true,0);
			_bmd.draw(source);
			var _bmp:Bitmap=new Bitmap(_bmd)
			_bmp.smoothing=true;
			return _bmp; 
			
		}
		
	}
}